PATH  Mac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Icon Services and Utilities
>
Obtaining and Using Icons With Icon Services

   

Modifying Reference Counts

You may find it useful to modify the reference count of an IconRef in preference to obtaining multiple IconRefs to the same data. This might be useful when your application maintains multiple instances of the same icon data, such as multiple file-copying operations. Use the function AcquireIconRef to increment the reference count for an IconRef . This allows you to keep the icon data in the cache without going through the trouble of obtaining additional IconRefs . If you modify the reference count directly, be sure to decrement the reference count as needed by using the function ReleaseIconRef.


© 1999 Apple Computer, Inc. – (Last Updated 03 Dec 99)